import request from '@/utils/request'

// 查询所有下拉框数据
export function getSelectAllData() {
  return request({
    url: '/inventory/management/getSelectAllData',
    method: 'get',
  })
}



// 查询存货管理列表
export function listManagement(query) {
  return request({
    url: '/inventory/management/list',
    method: 'get',
    params: query
  })
}

// 查询存货管理详细
export function getManagement(id) {
  return request({
    url: '/inventory/management/' + id,
    method: 'get'
  })
}

// 新增存货管理
export function addManagement(data) {
  return request({
    url: '/inventory/management',
    method: 'post',
    data: data
  })
}

// 修改存货管理
export function updateManagement(data) {
  return request({
    url: '/inventory/management',
    method: 'put',
    data: data
  })
}

// 删除存货管理
export function delManagement(id) {
  return request({
    url: '/inventory/management/' + id,
    method: 'delete'
  })
}
